<?php
/*
Template Name: Page without sidebar
*/
?>

<?php get_header(); ?>

<div id="supercol">

	<?php if (have_posts()) : ?>
	<?php while (have_posts()) : the_post(); ?>
	
	<div class="sitenav">
	<a href="<?php bloginfo('url'); ?>"><?php print NAV_HOME; ?></a>&nbsp;&nbsp;&raquo;&nbsp;&nbsp;<?php single_post_title(); ?>
	</div>

	<div id="post-<?php the_ID(); ?>" class="post">
	<h1><?php the_title(); ?></h1>
	<?php the_content(CONTINUE_READING.' &raquo;'); ?><div class="clear"></div>
	<?php wp_link_pages(array('before' => '<p><strong>'.PAGES.':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
	</div>

	<?php endwhile; ?>
	<?php else : ?>
	
	<!-- Not found? -->
	<div class="sitenav">
	<a href="<?php bloginfo('url'); ?>"><?php print NAV_HOME; ?></a>&nbsp;&nbsp;&raquo;&nbsp;&nbsp;<?php print ERROR404; ?>
	</div>
	
	<div class="post">
	<h2><?php print CANNOT_FIND_IT; ?></h2>
	<p><?php print SEARCH_SUGGESTION; ?></p>
	<form class="find" method="get" action="<?php bloginfo('url'); ?>/">
		<fieldset>
			<input type="text" value="<?php the_search_query(); ?>" name="s" class="findfield" />
			<input type="submit" value="<?php print SEARCH; ?>" class="findsubmit" />
		</fieldset>
	</form>
	<h2><?php print YEARLY_ARCHIVE; ?></h2>
	<ul><?php wp_get_archives('type=yearly&show_post_count=1'); ?></ul>
	<h2><?php print MONTHLY_ARCHIVE; ?></h2>
	<ul><?php wp_get_archives('type=monthly&show_post_count=1'); ?></ul>
	<h2><?php print CATEGORY_ARCHIVE; ?></h2>
	<ul><?php wp_list_cats('sort_column=name&optioncount=1') ?></ul>
	<h2><?php print POSTS_ARCHIVE; ?></h2>
	<ul><?php wp_get_archives('type=postbypost') ?></ul>
	</div>

	<?php endif; ?>

</div>

<?php get_footer(); ?>